/**
 * Copyright (C), 2015-2020, XXX有限公司
 * FileName: test
 * Author:   sky
 * Date:     2020/4/14 14:31
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */

import cn.szh.dao.ProductDao;
import cn.szh.domain.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author sky
 * @create 2020/4/14
 * @since 1.0.0
 */
public class test {

    public static void main(String[] args) {
        ApplicationContext ac=
                new ClassPathXmlApplicationContext("classpath:spring/ssm_dao.xml");
        ProductDao productDao = ac.getBean(ProductDao.class);
        List<Product> all = productDao.findAll();
        for (Product product : all) {
            System.out.println(product);
        }
    }
}
